<?php
$this->pageTitle = Yii::app()->name . ' - Login';
$this->breadcrumbs = array(
    'Login',
);
?>

<h1>Login</h1>

<p>Please fill out the following form with your login credentials:</p>

<div class="form">
    <?php
    $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
        'id' => 'login-form',
        'enableAjaxValidation' => true,
        'type' => 'horizontal',
        'clientOptions' => array(
            'validateOnSubmit' => true,
        ),
    ));
    ?>

    <p class="note">Fields with <span class="required">*</span> are required.</p>

    <?php echo $form->textFieldRow($model, 'username'); ?>

    <?php echo $form->error($model, 'username') ?>

    <?php echo $form->passwordFieldRow($model, 'password'); ?>

    <?php echo $form->error($model, 'password') ?>

    <?php echo $form->checkBoxRow($model, 'rememberMe'); ?>

    <div class="control-group">
        <label class="control-label">

        </label>
        <div class="controls">
            <input type="submit" value="Login" class="btn btn-primary" />
        </div>
    </div>

    <?php $this->endWidget(); ?>
</div><!-- form -->
